import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import MyButton from './components/MyButton.vue'
import bus from './units/bus'
import axios from 'axios'

//引入elementui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';


Vue.use(ElementUI);
Vue.component("MyBtn",MyButton)//注册全局组件
//将引入的bus.js挂载在vue原型上并起名叫$bus
Vue.prototype.$bus=bus
//将引入的axios挂载在原型上
Vue.prototype.$axios=axios

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
